<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/13 0013
 * Time: 9:30
 */
namespace app\index\model;
use app\admin\model\UserModel;

class GetUser
{
    static function get($token){
        if(!$token){
            return false;
        }
        if($user = UserModel::getIndexUser()->where('user.token',$token)->find()){
            return $user;
        }else{
            return false;
        }
    }
}